describe('practice-6-9', function () {

    it("找出每个人贴的是黑纸还是白纸?", function () {
        var result = get_black_and_white();
        var A=0,B= 0,C= 0,D= 0,E=0;
        if(result.A == 'white') A = 1;
        else if(result.A == 'black') A = 0;

        if(result.B == 'white') B = 1;
        else if(result.B == 'black') B = 0;

        if(result.C == 'white') C = 1;
        else if(result.C == 'black') C = 0;

        if(result.D == 'white') D = 1;
        else if(result.D == 'black') D = 0;

        if(result.E == 'white') E = 1;
        else if(result.E == 'black') E = 0;

        console.info(A+':'+B+':'+C+':'+D+':'+E);

        expect((A===1&&B+C+D+E===3)||(A!==1&&B+C+D+E!==3)).toBe(true);
        expect((B===1&&A+C+D+E===0)||(B!==1&&A+C+D+E!==0)).toBe(true);
        expect((C===1&&A+B+D+E===1)||(C!==1&&A+B+D+E!==1)).toBe(true);
        expect((D===1&&A+B+C+E===4)||(D!==1&&A+B+C+E!==4)).toBe(true);
    });
});
